package com.ruoyi.carbon.mapper;

import com.ruoyi.carbon.domain.CheliangDiaoduDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheliangDiaoduDetailMapper {

    int save(CheliangDiaoduDetail cheliangDiaoduDetail);

    @Select("select * from cheliang_diaodu_detail where cheliang_diaodu_id = #{CLDDId};")
    List<CheliangDiaoduDetail> getByCLDDId(Long CLDDId);

    @Delete("delete from cheliang_diaodu_detail where cheliang_diaodu_id = #{clddId};")
    void deleteByClddId(Long clddId);

    void batchInsert(List<CheliangDiaoduDetail> cheliangDiaoduDetails);
}
